package com.jz.beijianbao.price.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class PriceAdd {

    @NotNull(message = "名称不能为空")
    private String name;
    @NotNull(message = "编号不能为空")
    private String code;
    @NotNull(message = "法人id不能为空")
    private String legalPersonCode;
    @NotNull(message = "法人id不能为空")
    private Integer taxType;
    @NotNull(message = "法人id不能为空")
    private Integer priceType;
    @NotNull(message = "法人id不能为空")
    private Integer currencyCode;
    @NotNull(message = "法人id不能为空")
    private Double price;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date startTime;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date endTime;



    @NotNull(message = "备件小类Id不能为空")
    private Integer legalperson;
    @NotNull(message = "计划大类id不能为空")
    private Integer planClassId;




}
